import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import {
  NbSidebarModule,
  NbMenuModule,
  NbUserModule,
  NbActionsModule,
  NbSearchModule,
  NbContextMenuModule
 } from '@nebular/theme';

import { ThemeModule } from '../@theme/theme.modules';
import { TablesModule } from './tables/tables.module';
import { DashboardModule } from './dashboard/dashboard.module';

import { PagesComponent } from './pages.component';
import { PagesRoutingModule } from './pages-routing.module';
import { UserComponent } from './user/user.component';
import { SmartTableComponent } from './tables/smart-table/smart-table.component';
import { TreeGridComponent } from './tables/tree-grid/tree-grid.component';
import { PrimeTableComponent } from './tables/prime-table/prime-table.component';

@NgModule({
  imports: [
    PagesRoutingModule,
    ThemeModule,
    FormsModule,
    CommonModule,
    NbUserModule,
    DashboardModule,
    NbActionsModule,
    NbSearchModule,
    NbUserModule,
    NbContextMenuModule,
    NbSidebarModule.forRoot(),
    NbMenuModule.forRoot(),
    ...TablesModule
  ],
  declarations: [
    PagesComponent,
    UserComponent,
    SmartTableComponent,
    TreeGridComponent,
    PrimeTableComponent
  ],
})
export class PagesModule { }
